package com.tiancheng.trade.payment.mq.producer;

import com.tiancheng.trade.commom.core.data.MessageBody;
import com.tiancheng.trade.commom.core.enums.TradeRabBitMqEnums;

/**
 * rabbit消息生产者接口
 */
public interface IRabbitProducer {

    void sendMessage(MessageBody messageBody, long expiration);

    /**
     * 队列的exchange
     * @return TradeRabBitMqEnums
     */
    TradeRabBitMqEnums exchange();
    /**
     * 队列的routingKey
     * @return TradeRabBitMqEnums
     */
    TradeRabBitMqEnums routingKey();
}
